package com.jumi.microservice.constant.comment;

import com.jumi.microservice.common.base.dto.AbstractEnum;

/**
 * @author Scw
 */
public enum CommentEnum implements AbstractEnum {
    //测试的提示
    NO_LOGIN(500, "请先登录"),
    COMMENT_LENGTH_LONG(500, "评论字数不能为空或者超过200"),
    COMMENT_REPLY_LONG(500, "回复字数不能为空或者超过200"),
    COMMENT_IMAGES_LONG(500, "评论图片不能超过6个"),
    COMMENT_REPEAT_ERROR(500, "评论回头客状态更新失败"),
    COMMENT_GId(500, "商品id不能为空"),
    COMMENT_SEARCH_TYPE(500, "一级搜索类型不能为空"),
    COMMENT_SPUGID(500, "商品spuid不能为空"),
    COMMENT_INSERT_ERROR(500, "不能重复添加"),
    COMMENT_HIDEN_ID_ERROR(500, "评论id不能为空"),
    COMMENT_NEW_ONE(200, "评论为空");

    private Integer code;
    private String message;

    CommentEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }


    @Override
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}

